import EthHandle from '../../server/coin/eth/EthHandle';
import des from 'decimal.js';

const transaction = { 
  blockHash: '0x89ab4855db0b2653c5217d89d8f28a63bff00c5e9ff51a3d316e5d6e2d5f4221',
  blockNumber: 7364548,
  from: '0x6d1056f53a24Ee9052898bCc30AbCc40166eebad',
  gas: 60000,
  gasPrice: '4950000000',
  hash:'0x8f904a2affeb22e50511a308b63b7a139e1fd76ebb61f5d9721a5d4c0511765c',
  input: '0x',
  nonce: 204,
  to: '0xD358349EEe447A22b3462c45B696b806A495feBd',
  transactionIndex: 110,
  value: '100000000000000',
  v: '0x25',
  r:
  '0xac58e261435036688e0544e4820844e7956cc108b66c903e4e6ce56c5099d9e',
  s:
  '0x10c143711337112b0f35f3159f4829c0cb42d910f932221699a61b1012229c63' }

const ethHandle = new EthHandle(transaction, transaction.blockNumber);
// ethHandle.transfer();

var a = new des('100000000000000').sub('90000000000000')
console.log(a);
var b = a.div(10**18);
console.log(b);
